﻿using System.Diagnostics.Contracts;
using System;

namespace NColony.Syndication.Receiver.Contracts
{
    /// <summary>
    /// Contract interface for syndication feed items.
    /// </summary>
    [ContractClass(typeof(ISyndicationFeedItemContract))]
    public interface ISyndicationFeedItem
    {
        /// <summary>
        /// Gets or sets the title.
        /// </summary>
        /// <value>The title.</value>
        string Title { get; set; }

        /// <summary>
        /// Gets or sets the publish date.
        /// </summary>
        /// <value>The publish date.</value>
        DateTimeOffset PublishDate { get; set; }
    }
}
